<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>EasyPoi Demo</title>
    <style>
        .export {
            width: 100%;
            height: 60px;
        }
        .import {
            width: 100%;
            height: 60px;
        }

        .main {
            width: 100%;
        }
    </style>
</head>
<body>
<div class="export">
    <a href="/export">导出</a>
</div>
<div class="import">
    <form method="post" class="form-horizontal" action="/import" enctype="multipart/form-data">
        <input type="file" class="form-control" name="file" />
        <button type="submit">导入</button>
    </form>
</div>
<div class="main">
    <table class="table table-striped table-bordered table-hover dataTables-example">
        <thead>
            <tr>
                <th>用户ID</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>创建时间</th>
            </tr>
        </thead>
        <tbody>
            <tr class="gradeX" th:each="user : ${list}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.name}"></td>
                <td th:text="${user.sex==0?'保密':(user.sex==1?'男':'女')}"></td>
                <td th:text="${user.age}"></td>
                <td th:text="${user.createTime}"></td>
            </tr>
        </tbody>
    </table>
</div>
</body>
</html>